package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.AudioFolder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AudioFolderMapper {
    AudioFolder selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    int insert(AudioFolder audioFolder);
    int insertSelective(AudioFolder audioFolder);
    int updateByPrimaryKeySelective(AudioFolder audioFolder);
    int updateByPrimaryKey(AudioFolder audioFolder);
    List<AudioFolder> listAudioFolderBySuperId(@Param("superId") Integer superId);
    int updatePath(AudioFolder audioFolder);
    int updateHasSubfolder(AudioFolder audioFolder);
    AudioFolder getRootAudioFolder();
    int updateDeleteStatus(AudioFolder audioFolder);
    int getSubfolderCount(@Param("id")Integer id);
    int clearDefaultFolder();
    int setDefaultFolder(@Param("id")Integer id);
    AudioFolder getDefaultAudioFolder();
}
